home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / yaml.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  2KB  |  82 lines

  1. <?xml version="1.0"?>
  2. <!--
  3. YAML mode by Jakub Rozto─ìil <jakub@webkitchen.cz>
  4. -->
  5. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  6. <MODE>
  7.     <PROPS>
  8.         <PROPERTY NAME="indentNextLines" VALUE=".+:$" />
  9.         <PROPERTY NAME="indentOpenBrackets" VALUE="[{|>" />
  10.         <PROPERTY NAME="indentCloseBrackets" VALUE="}]" />
  11.         <PROPERTY NAME="ignoreWhitespace" VALUE="false" />
  12.         <PROPERTY NAME="lineComment" VALUE="#" />
  13.         <!-- YAML forbids tabs -->
  14.         <PROPERTY NAME="noTabs" VALUE="true" />
  15.         <PROPERTY NAME="indentSize" VALUE="2" />
  16.         <PROPERTY NAME="tabSize" VALUE="2" />
  17.     </PROPS>
  18.  
  19.     <RULES ESCAPE="\" HIGHLIGHT_DIGITS="TRUE">
  20.         <SEQ TYPE="KEYWORD3">...</SEQ>
  21.         <SEQ TYPE="KEYWORD3">---</SEQ>
  22.         <!-- NAME -->
  23.         <SEQ_REGEXP AT_WHITESPACE_END="TRUE" DELEGATE="VALUES">-( |$)</SEQ_REGEXP>
  24.         <IMPORT DELEGATE="NAME" />
  25.     </RULES>
  26.  
  27.     <RULES SET="NAME">
  28.         <SEQ_REGEXP TYPE="KEYWORD1" DELEGATE="VALUES">[^:\[\]{},'"#]+:( |$)</SEQ_REGEXP>
  29.         <!-- Useful for Symfony configuration files -->
  30.         <SPAN TYPE="MARKUP" DELEGATE="php::PHP">
  31.             <BEGIN><?php</BEGIN>
  32.             <END>?></END>
  33.         </SPAN>
  34.     </RULES>
  35.  
  36.     <RULES SET="ARRAYS">
  37.         <SPAN NO_LINE_BREAK="FALSE" TYPE="OPERATOR" DELEGATE="ARRAY">
  38.             <BEGIN>{</BEGIN>
  39.             <END>}</END>
  40.         </SPAN>
  41.         <SPAN NO_LINE_BREAK="FALSE" TYPE="OPERATOR" DELEGATE="ARRAY">
  42.             <BEGIN>[</BEGIN>
  43.             <END>]</END>
  44.         </SPAN>
  45.     </RULES>
  46.  
  47.     <RULES SET="ARRAY">
  48.         <IMPORT DELEGATE="VALUES" />
  49.         <SEQ TYPE="OPERATOR">,</SEQ>
  50.     </RULES>
  51.  
  52.     <RULES SET="VALUES" HIGHLIGHT_DIGITS="TRUE">
  53.         <EOL_SPAN TYPE="COMMENT1" AT_LINE_START="FALSE">#</EOL_SPAN>
  54.         <IMPORT DELEGATE="NAME" />
  55.         <IMPORT DELEGATE="ARRAYS" />
  56.         <!-- Yaml forbids tabs -->
  57.         <SEQ_REGEXP TYPE="INVALID">\t</SEQ_REGEXP>
  58.         <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
  59.             <BEGIN>"</BEGIN>
  60.             <END>"</END>
  61.         </SPAN>
  62.         <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
  63.             <BEGIN>'</BEGIN>
  64.             <END>'</END>
  65.         </SPAN>
  66.         <KEYWORDS>
  67.             <KEYWORD3>~</KEYWORD3>
  68.             <KEYWORD3>false</KEYWORD3>
  69.             <KEYWORD3>n</KEYWORD3>
  70.             <KEYWORD3>No</KEYWORD3>
  71.             <KEYWORD3>off</KEYWORD3>
  72.             <KEYWORD3>Y</KEYWORD3>
  73.             <KEYWORD3>true</KEYWORD3>
  74.             <KEYWORD3>Yes</KEYWORD3>
  75.             <KEYWORD3>ON</KEYWORD3>
  76.         </KEYWORDS>
  77.     </RULES>
  78.  
  79. </MODE>
  80.  
  81.  
  82.